<html>
    <head>
        <title>
            window弹框
        </title>
        <script>
        /*   var con  = window.confirm("确定离开吗")
            if (con == true) {
                alert("好吧");
                
            } else {
                alert("你真好");
                
            }*/
       function webSear(){
          var webId = document.getElementById("sear");
                window.location.href = webId.value;
       }

           
        </script>
    </head>
    <body>
        <input type="text" name="sear" id="sear"   >
        <input type="button" value="跳转"  onclick="webSear()">
        <input type="button" value="退出" onclick="closeW()">
    </body>
    </html>